package com.playball.lottery.customview;

import java.io.Serializable;
import java.util.ArrayList;

import android.app.Application;

public class ApplicationBall extends Application implements Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    /**
     * 全局变量，该类在某一个Activity中改变了这些全局变量的值，那么在同一个应用的其他Activity中值就会改变。
     */

    //个人信息
    private String realName = "";
    private String mobile = "";
    private String cardNum = "";
    private String bankName = "";
    
    // 双色球列表
    private ArrayList<BallDTO> list_ssqdto;
    private int all_ssqmoney;

    // 大乐透列表
    private ArrayList<BallDTO> list_dltdto;
    private int all_dltmoney;

    // 11选5列表
    private ArrayList<BallDTO> list_11x5dto;
    private int all_11x5money;
    private int play_11x5Id;
    
    // 重庆时时彩列表
    private ArrayList<BallDTO> list_cqsscdto;
    private int all_cqsscmoney;
    private int play_cqsscId;
    private String play_cqssctype;

    //排列3列表
    private ArrayList<BallDTO> list_pl3dto;
    private int all_pl3money;
    private int play_pl3Id;
    
    // 竞彩足球
    private ArrayList<ChildDTO> list_jcdto;
    private int all_jcmoney;

    // 总金额

    // 双色球列表
    private int red_count;
    private int blue_count;
    private int dlt_red_count;
    private int dlt_blue_count;

    private String loginName;
    private String loginPwd;
    /**保存登录时返回的userId进全局变量*/
    public static String UserID="";
	/**底部菜单栏高度*/
    private int tabHostHeight; 

    public int getTabHostHeight() {
		return tabHostHeight;
	}

	public void setTabHostHeight(int tabHostHeight) {
		this.tabHostHeight = tabHostHeight;
	}

	// 初始化全局变量
    @Override
    public void onCreate() {
	// TODO Auto-generated method stub
	super.onCreate();

	// 初始化选号
	initList();
	setLoginName("");
	setLoginPwd("");
	setUserID("");
    }

    // 初始化选号
    public void initList() {
	list_ssqdto = new ArrayList<BallDTO>();
	setList_ssqdto(list_ssqdto);
	setRed_count(6);
	setBlue_count(1);
	setAll_ssqmoney(0);

	list_dltdto = new ArrayList<BallDTO>();
	setList_dltdto(list_dltdto);
	setDlt_red_count(5);
	setDlt_blue_count(2);
	setAll_dltmoney(0);

	list_11x5dto = new ArrayList<BallDTO>();
	setList_11x5dto(list_11x5dto);
	setPlay_11x5Id(0);
	setAll_11x5money(0);
	
	list_cqsscdto = new ArrayList<BallDTO>();
	setList_cqsscdto(list_cqsscdto);
	setPlay_cqsscId(0);
	setAll_cqsscmoney(0);
	setPlay_cqssctype("");
	
	list_pl3dto = new ArrayList<BallDTO>();
	setList_pl3dto(list_pl3dto);
	setPlay_pl3Id(0);
	setAll_pl3money(0);

	list_jcdto = new ArrayList<ChildDTO>();
	setList_jcdto(list_jcdto);
	setAll_jcmoney(0);
    }

    public int getDlt_red_count() {
	return dlt_red_count;
    }

    public void setDlt_red_count(int dlt_red_count) {
	this.dlt_red_count = dlt_red_count;
    }

    public ArrayList<BallDTO> getList_ssqdto() {
	return list_ssqdto;
    }

    public void setList_ssqdto(ArrayList<BallDTO> list_ssqdto) {
	this.list_ssqdto = list_ssqdto;
    }

    public ArrayList<BallDTO> getList_dltdto() {
	return list_dltdto;
    }

    public void setList_dltdto(ArrayList<BallDTO> list_dltdto) {
	this.list_dltdto = list_dltdto;
    }

    public int getRed_count() {
	return red_count;
    }

    public void setRed_count(int red_count) {
	this.red_count = red_count;
    }

    public int getBlue_count() {
	return blue_count;
    }

    public void setBlue_count(int blue_count) {
	this.blue_count = blue_count;
    }

    public ArrayList<BallDTO> getList_11x5dto() {
	return list_11x5dto;
    }

    public void setList_11x5dto(ArrayList<BallDTO> list_11x5dto) {
	this.list_11x5dto = list_11x5dto;
    }
    
    public ArrayList<BallDTO> getList_cqsscdto() {
	return list_11x5dto;
    }

    public void setList_cqsscdto(ArrayList<BallDTO> list_cqsscdto) {
	this.list_cqsscdto = list_cqsscdto;
    }
    
    public ArrayList<BallDTO> getList_pl3dto() {
	return list_pl3dto;
    }

    public void setList_pl3dto(ArrayList<BallDTO> list_pl3dto) {
	this.list_pl3dto = list_pl3dto;
    }

    public String getLoginName() {
	return loginName;
    }

    public void setLoginName(String loginName) {
	this.loginName = loginName;
    }

    public String getLoginPwd() {
	return loginPwd;
    }

    public void setLoginPwd(String loginPwd) {
	this.loginPwd = loginPwd;
    }

    public int getDlt_blue_count() {
	return dlt_blue_count;
    }

    public void setDlt_blue_count(int dlt_blue_count) {
	this.dlt_blue_count = dlt_blue_count;
    }

    public ArrayList<ChildDTO> getList_jcdto() {
	return list_jcdto;
    }

    public void setList_jcdto(ArrayList<ChildDTO> list_jcdto) {
	this.list_jcdto = list_jcdto;
    }

    public int getAll_ssqmoney() {
	return all_ssqmoney;
    }

    public void setAll_ssqmoney(int all_ssqmoney) {
	this.all_ssqmoney = all_ssqmoney;
    }

    public int getAll_dltmoney() {
	return all_dltmoney;
    }

    public void setAll_dltmoney(int all_dltmoney) {
	this.all_dltmoney = all_dltmoney;
    }

    public int getAll_11x5money() {
	return all_11x5money;
    }

    public void setAll_11x5money(int all_11x5money) {
	this.all_11x5money = all_11x5money;
    }
    
    public int getAll_cqsscmoney() {
	return all_cqsscmoney;
    }

    public void setAll_cqsscmoney(int all_cqsscmoney) {
	this.all_cqsscmoney = all_cqsscmoney;
    }
    
    public int getAll_pl3money() {
	return all_pl3money;
    }

    public void setAll_pl3money(int all_pl3money) {
	this.all_pl3money = all_pl3money;
    }

    public int getAll_jcmoney() {
	return all_jcmoney;
    }

    public void setAll_jcmoney(int all_jcmoney) {
	this.all_jcmoney = all_jcmoney;
    }

    public int getPlay_11x5Id() {
	return play_11x5Id;
    }

    public void setPlay_11x5Id(int play_11x5Id) {
	this.play_11x5Id = play_11x5Id;
    }
    
    public int getPlay_cqsscId() {
	return play_cqsscId;
    }

    public void setPlay_cqsscId(int play_cqsscId) {
	this.play_cqsscId = play_cqsscId;
    }
    
    public int getPlay_pl3Id() {
	return play_pl3Id;
    }

    public void setPlay_pl3Id(int play_pl3Id) {
	this.play_pl3Id = play_pl3Id;
    }
   
    public String getRealName(){
    	return realName;
    }
    
    public void setRealName(String name){
    	realName = name;
    }
    
    public String getMobile(){
    	return mobile;
    }
    
    public void setMobile(String mobile){
    	this.mobile = mobile;
    }
    
    public String getCardNum(){
    	return cardNum;
    }
    
    public void setCardNum(String cardNum){
    	this.cardNum = cardNum;
    }
    
    public String getBankName(){
    	return bankName;
    }
    
    public void setBankName(String bankName){
    	this.bankName = bankName;
    }
    
    public String getUserID() {
		return UserID;
	}

	public void setUserID(String userID) {
		UserID = userID;
	}

	public String getPlay_cqssctype() {
		return play_cqssctype;
	}

	public void setPlay_cqssctype(String play_cqssctype) {
		this.play_cqssctype = play_cqssctype;
	}
}
